package com.shisfish.library.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IBookLendInter;
import com.shisfish.library.Model.BookLend;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class BookLendImpl implements IBookLendInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	IBookLendInter mapper = (IBookLendInter) ac.getBean("bookLendMapper");
	
	@Override
	public int insertOne(BookLend t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<BookLend> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(BookLend t) {
		// TODO Auto-generated method stub
		return mapper.updateOne(t);
	}

	@Override
	public int updateAll(List<BookLend> list) {
		// TODO Auto-generated method stub
		return mapper.updateAll(list);
	}

	@Override
	public List<BookLend> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BookLend> selectByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.selectByKey(key);
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return mapper.countAll();
	}

	@Override
	public List<BookLend> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookLend> selectOverdue() {
		// TODO Auto-generated method stub
		return mapper.selectOverdue();
	}

	@Override
	public List<BookLend> selectAllMessage(int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectAllMessage(currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> selectAllMessage1(int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectAllMessage1(currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> maxBorrowed() {
		// TODO Auto-generated method stub
		return mapper.maxBorrowed();
	}

	@Override
	public int countByBorrower(String borrower) {
		// TODO Auto-generated method stub
		return mapper.countByBorrower(borrower);
	}

	@Override
	public List<Map<String, Object>> selectByBorrower(String borrower,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByBorrower(borrower, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> selectByDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByDate(choDate, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> lendLogByDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.lendLogByDate(choDate, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> lendLogByDateBorrower(String borrower,
			String choDate, int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.lendLogByDateBorrower(borrower, choDate, currentPage, pageSize);
	}

	@Override
	public int countByDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countByDate(choDate);
	}

	@Override
	public int countLendLogByDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countLendLogByDate(choDate);
	}

	@Override
	public int countLendLogByDateBorrower(String borrower, String choDate) {
		// TODO Auto-generated method stub
		return mapper.countLendLogByDateBorrower(borrower, choDate);
	}

	@Override
	public int bookLogCount(String isbn) {
		// TODO Auto-generated method stub
		return mapper.bookLogCount(isbn);
	}

	@Override
	public List<Map<String, Object>> bookLogPage(String isbn, int currentPage,
			int pageSize) {
		// TODO Auto-generated method stub
		return mapper.bookLogPage(isbn, currentPage, pageSize);
	}

	@Override
	public List<BookLend> selectRemind(int date) {
		// TODO Auto-generated method stub
		return mapper.selectRemind(date);
	}

	@Override
	public int notReturnCount() {
		// TODO Auto-generated method stub
		return mapper.notReturnCount();
	}

	@Override
	public List<Map<String, Object>> notReturnPage(int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.notReturnPage(currentPage, pageSize);
	}

	@Override
	public int byTimestampCount(int type, String startTime, String endTime) {
		// TODO Auto-generated method stub
		return mapper.byTimestampCount(type, startTime, endTime);
	}

	@Override
	public List<Map<String, Object>> byTimestampPage(int type,
			String startTime, String endTime, int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.byTimestampPage(type, startTime, endTime, currentPage, pageSize);
	}

	@Override
	public List<BookLend> selectNotReturn() {
		// TODO Auto-generated method stub
		return mapper.selectNotReturn();
	}

	@Override
	public List<BookLend> selectByType(int type) {
		// TODO Auto-generated method stub
		return mapper.selectByType(type);
	}

	@Override
	public int byTimepointCount(int type, String startTime) {
		// TODO Auto-generated method stub
		return mapper.byTimepointCount(type, startTime);
	}

	@Override
	public List<Map<String, Object>> byTimepointPage(int type,
			String startTime, int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.byTimepointPage(type, startTime, currentPage, pageSize);
	}

	@Override
	public int myLendCount(String employee, int type) {
		// TODO Auto-generated method stub
		return mapper.myLendCount(employee, type);
	}

	@Override
	public List<Map<String, Object>> myLendPage(String employee, int type,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.myLendPage(employee, type, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> selectOverRecord() {
		// TODO Auto-generated method stub
		return mapper.selectOverRecord();
	}

	@Override
	public List<Map<String, Object>> selectCloseRecord() {
		// TODO Auto-generated method stub
		return mapper.selectCloseRecord();
	}

	@Override
	public List<Map<String, Object>> selectAllRecord() {
		// TODO Auto-generated method stub
		return mapper.selectAllRecord();
	}

	@Override
	public BookLend selectLastBarcode(String barCode) {
		// TODO Auto-generated method stub
		return mapper.selectLastBarcode(barCode);
	}
	
	@Override
	public int countByReturnDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countByReturnDate(choDate);
	}
	
	@Override
	public List<Map<String, Object>> selectByReturnDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByReturnDate(choDate, currentPage, pageSize);
	}
	
	@Override
	public int countByOverdueDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countByOverdueDate(choDate);
	}
	
	@Override
	public List<Map<String, Object>> selectByOverdueDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByOverdueDate(choDate, currentPage, pageSize);
	}

}
